using System;
using System.Collections.Generic;
using System.Text;
using CookComputing.XmlRpc;

namespace NMollom {
    public class MollomException : Exception {
        private int code;
        private string message;

        public MollomException(int code, string message) : base(message) {
            this.code = code;
            this.message = message;
        }

        public MollomException(int code, string message, XmlRpcFaultException xmlRpcException) : base(message, xmlRpcException) {
            this.code = code;
            this.message = message;
        }

        public int Code {
            get { return code; }
        }

        public string
            Message {
            get { return message; }
        }
    }
}
